package cn.jilian.admin.tool.web;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.servlet.ModelAndView;

import cn.jilian.common.domain.R;
import io.swagger.annotations.ApiOperation;

@RestController
@RequestMapping("/doc")
public class DocController {
	
	
	@GetMapping("/index.html")
	public ModelAndView est() {
		ModelAndView mv=new ModelAndView("test");
		return mv;
	}
	
	@ApiOperation(value="文档上传")
	@PostMapping("/upload")
	public R uploadFile(MultipartFile file) {
		return R.ok;
	}
	

}
